//
//  YearOnYearAndLinkRelativeView.h
//  cocoapodText
//
//  Created by apple on 16/9/7.
//  Copyright © 2016年 apple. All rights reserved.
//

#ifndef YearOnYearAndLinkRelativeView_h
#define YearOnYearAndLinkRelativeView_h


#endif /* YearOnYearAndLinkRelativeView_h */
#import "CommonTool.h"
#import <UIKit/UIKit.h>

@class YearOnYearAndLinkRelativeView;

//一个协议可以扩展另一个协议，例如FSLoginViewDelegate扩展了NSObject协议
@protocol YearOnYearAndLinkRelativeViewDelegate <NSObject>

@required //@required修饰的方法必须实现
-(void)onSetData:(YearOnYearAndLinkRelativeView *)CardView;

@end

@interface YearOnYearAndLinkRelativeView : UIView
//标识数量
@property(nonatomic,strong)UILabel *CardTypeLabel;
//标识数量
@property(nonatomic,strong)UILabel *CardNumberLabel;
//标识单位
@property(nonatomic,strong)UILabel *CardUnitLabel;
//同比
@property(nonatomic,strong)UILabel *YearOnYearLabel;
//环比
@property(nonatomic,strong)UILabel *LinkRelativeLabel;
@property(nonatomic,strong)UIImageView *tongbiImageView;
@property(nonatomic,strong)UIImageView *fengexian;

#pragma mark - 属性
#pragma mark 代理属性，同时约定作为代理的对象必须实现KCButtonDelegate协议
@property (nonatomic,retain) id<YearOnYearAndLinkRelativeViewDelegate> delegate;

#pragma mark - 公共方法
-(void)setData;
-(void)setHiddenFenGeXian:(BOOL)hidden;
-(void)setCardType:(NSString *)type;
-(void)setNumber:(NSString *)number;
-(void)setUnit:(NSString *)unit;
-(void)setYearOnYear:(NSString *)yearOnYear status:(NSString *)status;
-(void)setLinkRelative:(NSString *)linkRelative  status:(NSString *)status;

@end
